package net.java.dev.jugbrescia.test.xml.model;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;

@XStreamAlias("lib:author")
public class Author
{
	@XStreamAsAttribute
	private String name;

	public Author(String name)
	{
		super();
		this.name = name;
	}

	/**
	 * @deprecated Use {@link #getNewName()} instead
	 */
	public String getName()
	{
		return getNewName();
	}

	public String getNewName()
	{
		return name;
	}
	
	public String toString()
	{
		return this.name;
	}
	
}